Skip to content

test: write the osworld1 stand-in's given.json whole, and give slow drivers one shared limit - #170

Merged
harenome merged 2 commits into
ThinkFlowLab:mainfrom
harenome:fix/fixed-wait-tests
Dec 4, 2026
Merged

harenome merged 2 commits into
ThinkFlowLab:mainfrom
harenome:fix/fixed-wait-tests

Conversation

@harenome

@harenome harenome commented Nov 16, 2026 •

Copy link
Copy Markdown
Collaborator

Closes #169

What

  • osworld1: the stand-in runner filled given.json after creating it; the driver read it empty. It now renames a .part, as computer_port.ready does.
  • Kit driver and installed snapshot waits share PATIENCE (60 s) in tests/__init__.py. Each wait still stops on its condition.

Touches

  • Tests only: tests/__init__.py and three test modules.

Verified

One CPU, nice -n 10, 3 busy loops (kit: 12). Before, after:

  • osworld1 TaskGiven: 1/60, 0/60
  • snapshot: 2/20, 0/20
  • kit planted_link: 4/20, 0/20
  • Dropped, not reproduced: execution, recovery, definitions, constraints
  • Backend 3915, routes 1019: OK

Risk

  • A hung kit driver or snapshot run fails after 60 s per reply or join; the snapshot driver has 240 s in all.
  • Undo: revert.

Agents

  • Claude Code, Opus 5.5: code, tests
  • Codex, GPT-6.2-Astra: review

…runner does

The driver read it as soon as it existed; the stand-in created it empty
and filled it after, so a slow machine read nothing (1 of 60 runs at one
loaded CPU). computer_port.ready writes a .part and renames it.
… snapshot runs up to a shared limit

PATIENCE, 60 s, in tests/__init__.py: each wait still stops on its
condition. At one loaded CPU the kit's score failed 4 of 20 runs at 10 s
and the snapshot runs 2 of 20 at 15 s each; none failed after.
@harenome
harenome force-pushed the fix/fixed-wait-tests branch from cf79301 to 601e64a Compare December 4, 2026 13:17
@harenome harenome changed the title test: wait for runs, drivers and killed processes until a load-tolerant deadline test(osworld1): write the stand-in runner's given.json whole, as the runner does Dec 4, 2026
@harenome harenome changed the title test(osworld1): write the stand-in runner's given.json whole, as the runner does test: write the osworld1 stand-in's given.json whole, and give slow drivers one shared limit Dec 4, 2026
@harenome
harenome marked this pull request as ready for review December 4, 2026 13:17
@github-actions github-actions Bot added the needs review Tests pass, no conflict, no verdict on its latest commit label Dec 4, 2026
@harenome
harenome merged commit 3fc6629 into ThinkFlowLab:main Dec 4, 2026
4 checks passed
@harenome
harenome deleted the fix/fixed-wait-tests branch December 4, 2026 13:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

needs review Tests pass, no conflict, no verdict on its latest commit

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Tests: six backend tests fail at 1 CPU on fixed waits

1 participant